package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.CuisineDao;
import com.cn.wanxi.dao.impl.CuisineImpl;
import com.cn.wanxi.model.CuisineModel;
import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.service.CuisineService;

import java.util.List;

public class CuisineServiceImpl implements CuisineService {
    @Override
    public ResultModel findAll(CuisineModel model) {
        ResultModel resultModel = new ResultModel();
        CuisineDao cuisineDao = new CuisineImpl();
        List<CuisineModel> list = cuisineDao.findAll(model);
        resultModel.setData(list);
        return resultModel;
    }

    @Override
    public ResultModel add(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel findById(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel update(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel delete(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel getCount(CuisineModel cuisineModel) {
        return null;
    }
}
